package umn.monopolybankservice



import grails.test.mixin.*
import org.junit.*

/**
 * See the API for {@link grails.test.mixin.domain.DomainClassUnitTestMixin} for usage instructions
 */
@TestFor(Player)
class PlayerTests {

    void testWallet() {
        Player p = new Player(
               name: "J Doe"
        )
        assert p.validate()
        p.wallet = -1;
        assertFalse p.validate()
        p.wallet = 0;
        assert p.validate()
        p.wallet = 1;
        assert p.validate()
    }
}
